package com.ksvip.next.components.core.bean;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
public class PageQueryCmd<T> extends CommonCmd {

    private static final long  serialVersionUID  = 7279388904745893425L;
    public static final String ASC               = "ASC";
    public static final String DESC              = "DESC";
    private static final int   DEFAULT_PAGE_SIZE = 10;
    /**
     * @Schema(title = "暂时条数")
     */
    private int                pageSize          = DEFAULT_PAGE_SIZE;
    /**
     * @Schema(title = "页号")
     */
    private int                pageIndex         = 1;
    /**
     * @Schema(title = "是否需要总条数")
     */
    private boolean            needTotalCount    = true;
    /**
     * 查询对象参数
     */
    private    T               params;

}
